package com.example.teesystem.entity.vo.examPaper;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author : NieYaShi
 * @version : v1.0
 * @createTime : 2022/4/11 10:22
 */
@Data
public class ExamPaperSelectVo1 {

    @NotNull(message = "值不能为空")
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;

    @NotNull(message = "值不能未空")
    private Integer classId;

    private Integer paperId;

    @Min(value = 1, message = ValidErrorMessage.PAGE_CUR_VALID_FAIL)
    private Integer cur;

    /**
     * 每页个数
     */
    @Min(value = 0, message = ValidErrorMessage.PAGE_CUR_VALID_FAIL)
    private Integer size;
}
